<%
function Nondescript($configPath)
{
	this.Name=null;
	this.ConfigPath=$configPath;
	this.Config=null;
	
	this.LoadConfig();
}

Nondescript.prototype=
{
	Run:function()
	{
		this.LoadConfig();
		
						
		
		Session('IsRoute')=true;
		{
			Server.Execute(this.Route());
		}
		Session('IsRoute')=null;			
	},
	
	LoadConfig:function()
	{
		this.Config={
			ApplicationPath:'_shipinall',
			RouteProtocol:''
		};
		
	},
	
	Route:function()
	{
		var queryString=Request.QueryString.Item.toString(),collection=queryString.split('/');	
		var app,controller=queryString.split('&')[0],isAppoint=queryString.charAt(0)=='/';
		
		//app
		if(isAppoint){
			app=collection[1];
		}
		else{
			app=$defaultapp;
		}
		
		//controller
		if(isAppoint){
			controller=controller.split('/').slice(2,controller.length).join('/');
		}
		else{
			controller=controller.split('/').join('/');
		}
		
		return '_'+app+'/controllers/'+controller+'.asp';
	},
	
	GetName:function()
	{
		var appName,queryString=Request.QueryString.Item.toString(),collection=queryString.split('/');	
		var isAppoint=queryString.charAt(0)=='/';
		
		if(isAppoint){
			appName=collection[1];
		}
		return appName
	}
};
%>









